<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page language="java" import="com.ItemsRent.model.*"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>华农物品租借平台</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<link rel="stylesheet" href="css/bootstrap1.css" type="text/css"></link>
<link rel="stylesheet" href="css/fileinput.css" type="text/css"></link>
<link rel="stylesheet" href="css/main.css" type="text/css"></link>
<link rel="stylesheet" href="css/flat-ui.css" type="text/css"></link>



<script type="text/javascript" src="js/jquery-2.1.1.js"></script>
<!-- <script type="text/javascript" src="js/jquery.js"></script> -->
<script type="text/javascript" src="js/bootstrap.js"></script>
<script type="text/javascript" src="js/fileinput.js"></script>
<script type="text/javascript" src="js/view.js"></script>
<script type="text/javascript" src="js/order_form.js"></script>
<script type="text/javascript" src="js/type.js"></script>
<script type="text/javascript" src="js/newItem.js"></script>
<script type="text/javascript" src="js/rent_items_manage.js"></script>
<script type="text/javascript" src="js/book_items_manage.js"></script>
<script type="text/javascript" src="js/item_pMessage.js"></script>
<script type="text/javascript" src="js/search.js"></script>
<script type="text/javascript" src="js/item_iRent.js"></script>
<script type="text/javascript" src="js/item_editPwd.js"></script>
<script type="text/javascript" src="js/ajaxfileupload.js"></script>

<script>
	$(document).ready(function() {
		$("#upload").fileinput({

			showUpload : false,
			showCaption : false,
			browseClass : "btn btn-primary btn-md",
			removeClass : "btn btn-primary btn-md",
			allowedFileTypes : [ 'image' ],
			image : {
				width : "160px",
				height : "160px"
			}
		});

	});
</script>

</head>
<%
	Customer customer = (Customer) session.getAttribute("customer");
	String cuName = customer.getCustomerName();
	String qqNumber = customer.getQq();
	String phoneNumber = customer.getPhone();
	String address = customer.getAddress();
	String email = customer.getEmail();
	String meg = "";

	if (customer == null) {
		meg = "亲，请先登录";
	} else {
		meg = cuName + " ,欢迎来到华农物品租借平台";
	}
%>
<body>
	<div class="item_header">
		<label class="col-md-offset-1">有问题请咨询10086</label> <label
			class="col-md-offset-7"><%=meg%></label>
	</div>

	<div class="item_image"></div>
	<div class="row demo-row"
		style="margin-left:12%;margin-top:1%;width: 83.5%">

		<div class="col-md-11">
			<nav class=" navbar-inverse navbar-embossed" role="navigation">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse"
					data-target="#navbar-collapse-01">
					<span class="sr-only">Toggle navigation</span>
				</button>
			</div>
			<div class="collapse navbar-collapse" id="navbar-collapse-01">
				<ul class="nav navbar-nav navbar-left">
					<li><a onclick="item_main()">首页 </a>
					</li>
					<li><a onclick="item_shop()">商城</a>
					</li>
					<li class="dropdown"><a href="itemManage.jsp"
						class="dropdown-toggle" data-toggle="dropdown">物品操作 <b
							class="caret"></b> </a> <span class="dropdown-arrow"></span>
						<ul class="dropdown-menu">
							<li><a onclick="item_iRent()">我要出租</a></li>
							<li><a onclick="item_iRentManage()">出租物品管理</a></li>
							<li><a onclick="item_iBookManage()">预订物品管理</a></li>

						</ul>
					</li>
					<li class="dropdown"><a href="personManange.jsp"
						class="dropdown-toggle" data-toggle="dropdown">个人操作 <b
							class="caret"></b> </a> <span class="dropdown-arrow"></span>
						<ul class="dropdown-menu">
							<li><a onclick="item_pMessage()">个人信息</a></li>
							<li><a onclick="item_order1()">已下订单</a></li>
							<li><a onclick="item_order2()">收到的订单</a></li>
							<li><a onclick="item_editPwd()">修改密码</a></li>
						</ul>
					</li>
					<li><a href="index.jsp">退出系统</a>
					</li>

					<li>
						<!--  <label style="margin-left: 100px;" ><font color="white">物品名字</font></label>-->
						<input name="searchName" id="searchName" type="text"
						style="width:180px;height:30px;margin-top: 10px;margin-left: 180px;margin-right: 10px;">

						<button type="button" class="btn btn-primary"
							style="margin-top: 5px" onclick="search();">搜索</button>
					</li>
				</ul>

			</div>
			</nav>
		</div>
	</div>
	<div id="item_main">
		<div class="item_carousel">
			<div id="carousel-example-generic" class="carousel slide"
				data-ride="carousel">
				<ol class="carousel-indicators">
					<li data-target="#carousel-example-generic" data-slide-to="0"
						class="active"></li>
					<li data-target="#carousel-example-generic" data-slide-to="1"
						class=""></li>
					<li data-target="#carousel-example-generic" data-slide-to="2"
						class=""></li>
				</ol>
				<div class="carousel-inner">
					<div class="item active">
						<img alt="First slide" src="image/1.jpg">

					</div>
					<div class="item">
						<img alt="Second slide" src="image/2.jpg">
					</div>
					<div class="item">
						<img alt="Third slide" src="image/3.jpg">
					</div>
				</div>
				<a class="left carousel-control" href="#carousel-example-generic"
					data-slide="prev"> <span
					class="glyphicon glyphicon-chevron-left"></span> </a> <a
					class="right carousel-control" href="#carousel-example-generic"
					data-slide="next"> <span
					class="glyphicon glyphicon-chevron-right"></span> </a>
			</div>
		</div>
		<h4 style="margin-left:13.1%;margin-top:4%;">最新上架物品</h4>

		<div class="item_title">
			<h5>电子产品</h5>
		</div>
		<div class="item_newItem">
			<div class="item_newItem1">
				<img src="image/product_1.png" style="margin-left:24%"></img>
				<table class="table">

					<tbody align="center">
						<tr>
							<td>名称</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>价格</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>余量</td>
							<td>xxx</td>
						</tr>
					</tbody>
				</table>

			</div>
			<div class="item_newItem1">
				<img src="image/product_1.png" style="margin-left:24%"></img>
				<table class="table">
					<tbody align="center">
						<tr>
							<td>名称</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>价格</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>余量</td>
							<td>xxx</td>
						</tr>
					</tbody>
				</table>
				<button class="btn btn-primary" style="margin-left: 37%;">详情</button>
			</div>
			<div class="item_newItem1">
				<img src="image/product_1.png" style="margin-left:24%"></img>
				<table class="table">
					<tbody align="center">
						<tr>
							<td>名称</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>价格</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>余量</td>
							<td>xxx</td>
						</tr>
					</tbody>
				</table>
				<button class="btn btn-primary" style="margin-left: 37%;">详情</button>
			</div>
			<div class="item_newItem1">
				<img src="image/product_1.png" style="margin-left:24%"></img>
				<table class="table">
					<tbody align="center">
						<tr>
							<td>名称</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>价格</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>余量</td>
							<td>xxx</td>
						</tr>
					</tbody>
				</table>
				<button class="btn btn-primary" style="margin-left: 37%;">详情</button>
			</div>
		</div>
		<div class="item_title">
			<h5>电子产品</h5>
		</div>
		<div class="item_newItem">
			<div class="item_newItem1">
				<img src="image/product_1.png" style="margin-left:24%"></img>
				<table class="table">
					<tbody align="center">
						<tr>
							<td>名称</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>价格</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>余量</td>
							<td>xxx</td>
						</tr>
					</tbody>
				</table>
				<button class="btn btn-primary" style="margin-left: 37%;">详情</button>
			</div>
			<div class="item_newItem1">
				<img src="image/product_1.png" style="margin-left:24%"></img>
				<table class="table">
					<tbody align="center">
						<tr>
							<td>名称</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>价格</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>余量</td>
							<td>xxx</td>
						</tr>
					</tbody>
				</table>
				<button class="btn btn-primary" style="margin-left: 37%;">详情</button>
			</div>
			<div class="item_newItem1">
				<img src="image/product_1.png" style="margin-left:24%"></img>
				<table class="table">
					<tbody align="center">
						<tr>
							<td>名称</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>价格</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>余量</td>
							<td>xxx</td>
						</tr>
					</tbody>
				</table>
				<button class="btn btn-primary" style="margin-left: 37%;">详情</button>
			</div>
			<div class="item_newItem1">
				<img src="image/product_1.png" style="margin-left:24%"></img>
				<table class="table">
					<tbody align="center">
						<tr>
							<td>名称</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>价格</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>余量</td>
							<td>xxx</td>
						</tr>
					</tbody>
				</table>
				<button class="btn btn-primary" style="margin-left: 37%;">详情</button>
			</div>
		</div>
		<div class="item_title">
			<h5>电子产品</h5>
		</div>
		<div class="item_newItem">
			<div class="item_newItem1">
				<img src="image/product_1.png" style="margin-left:24%"></img>
				<table class="table">
					<tbody align="center">
						<tr>
							<td>名称</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>价格</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>余量</td>
							<td>xxx</td>
						</tr>
					</tbody>
				</table>
				<button class="btn btn-primary" style="margin-left: 37%;">详情</button>
			</div>
			<div class="item_newItem1">
				<img src="image/product_1.png" style="margin-left:24%"></img>
				<table class="table">
					<tbody align="center">
						<tr>
							<td>名称</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>价格</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>余量</td>
							<td>xxx</td>
						</tr>
					</tbody>
				</table>
				<button class="btn btn-primary" style="margin-left: 37%;">详情</button>
			</div>
			<div class="item_newItem1">
				<img src="image/product_1.png" style="margin-left:24%"></img>
				<table class="table">
					<tbody align="center">
						<tr>
							<td>名称</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>价格</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>余量</td>
							<td>xxx</td>
						</tr>
					</tbody>
				</table>
				<button class="btn btn-primary" style="margin-left: 37%;">详情</button>
			</div>
			<div class="item_newItem1">
				<img src="image/product_1.png" style="margin-left:24%"></img>
				<table class="table">
					<tbody align="center">
						<tr>
							<td>名称</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>价格</td>
							<td>xxx</td>
						</tr>
						<tr>
							<td>余量</td>
							<td>xxx</td>
						</tr>
					</tbody>
				</table>
				<button class="btn btn-primary" style="margin-left: 37%;">详情</button>
			</div>
		</div>
	</div>


	<div id="item_shop" style="display: none">
		<div class="item_type">
			<div class="panel-group" id="accordion" role="tablist"
				aria-multiselectable="true">
				<div class="panel panel-default ">
					<div class="panel-heading">
						<h4 class="panel-title">
							<a data-toggle="collapse" data-parent="#accordion"
								aria-expanded="true" aria-controls="collapseOne"
								onclick="showItem();"> 所有商品</a>
						</h4>
					</div>
				</div>
				<div class="panel panel-default ">
					<div class="panel-heading">
						<h4 class="panel-title">
							<a data-toggle="collapse" data-parent="#accordion"
								href="#collapseOne" aria-expanded="true"
								aria-controls="collapseOne"> 电子产品</a>
						</h4>
					</div>
					<div id="collapseOne" class="panel-collapse collapse "
						role="tabpanel">
						<div class="panel-body">
							<table class="table" id="itemType_form1">

							</table>
						</div>
					</div>
				</div>
				<div class="panel panel-default">
					<div class="panel-heading">
						<h4 class="panel-title">
							<a data-toggle="collapse" data-parent="#accordion"
								href="#collapseTwo" aria-expanded="false"
								aria-controls="collapseTwo"> 书籍/影像</a>
						</h4>
					</div>
					<div id="collapseTwo" class="panel-collapse collapse"
						role="tabpanel">
						<div class="panel-body">
							<table class="table" id="itemType_form2">

							</table>
						</div>
					</div>
				</div>
				<div class="panel panel-default">
					<div class="panel-heading">
						<h4 class="panel-title">
							<a data-toggle="collapse" data-parent="#accordion"
								href="#collapseThree" aria-expanded="false"
								aria-controls="collapseThree"> 运动器材</a>
						</h4>
					</div>
					<div id="collapseThree" class="panel-collapse collapse"
						role="tabpanel">
						<div class="panel-body">
							<table class="table" id="itemType_form3">

							</table>
						</div>
					</div>
				</div>
				<div class="panel panel-default">
					<div class="panel-heading">
						<h4 class="panel-title">
							<a data-toggle="collapse" data-parent="#accordion"
								href="#collapseFour" aria-expanded="false"
								aria-controls="collapseFour"> 生活用品 </a>
						</h4>
					</div>
					<div id="collapseFour" class="panel-collapse collapse"
						role="tabpanel">
						<div class="panel-body">
							<table class="table" id="itemType_form4">

							</table>
						</div>
					</div>
				</div>
				<div class="panel panel-default">
					<div class="panel-heading">
						<h4 class="panel-title">
							<a data-toggle="collapse" data-parent="#accordion"
								href="#collapseFive" aria-expanded="false"
								aria-controls="collapseFive"> 会议用品 </a>
						</h4>
					</div>
					<div id="collapseFive" class="panel-collapse collapse"
						role="tabpanel">
						<div class="panel-body">
							<table class="table" id="itemType_form5">

							</table>
						</div>
					</div>
				</div>
				<div class="panel panel-default">
					<div class="panel-heading">
						<h4 class="panel-title">
							<a data-toggle="collapse" data-parent="#accordion"
								href="#collapseSix" aria-expanded="false"
								aria-controls="collapseSix"> 其他 </a>
						</h4>
					</div>
					<div id="collapseSix" class="panel-collapse collapse"
						role="tabpanel">
						<div class="panel-body">
							<table class="table" id="itemType_form6">

							</table>
						</div>
					</div>
				</div>
			</div>
		</div>

		<div class="item_items" id="new_items_form"></div>
	</div>



	<div id="item_iRent" class="item_iRent" style="display: none">
		<div id="item_board" class="item_board"></div>
		<div class="form-inline" role="form">
			<div class="col-md-offset-3" style="margin-top: 5%">
				<label>&nbsp;&nbsp;&nbsp;&nbsp;物品名称
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label> <input id="itemName"
					class="form-control" type="text" style="width:150px;height: 30px"
					required />
			</div>

			<br>
			<div class="col-md-offset-3">
				<label>&nbsp;&nbsp;&nbsp;&nbsp;物品种类
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label> 
					<select id="item_pType" class="form-control" onchange="item_pType_Combox($('#item_type'))">
					    <option selected="selected"></option>
					    <option >电子产品</option>
                        <option >书籍/影像</option>
                        <option >运动器材</option>
                        <option >生活用品</option>
                        <option >会议用品</option>
                        <option >其他</option>
					</select>
				
			</div>
			<br>		
			
			<div class="col-md-offset-3">
				<label>&nbsp;&nbsp;&nbsp;&nbsp;物品子类
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label> 
					<select id="item_type" class="form-control">					
					</select>		
			</div>
			<br>		
			
			<div class="col-md-offset-3">
				<label>&nbsp;&nbsp;&nbsp;&nbsp;物品价格
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label> <input id="itemPrice"
					class="form-control" type="text" style="width:150px;height: 30px"
					required />
			</div>
			<br>

			<div class="col-md-offset-3">
				<label>&nbsp;&nbsp;&nbsp;&nbsp;物品数量
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label> <input id="itemNumber"
					class="form-control" type="text" style="width:150px;height: 30px"
					required />
			</div>
			<br>

			<div class="col-md-offset-3">
				<label>&nbsp;&nbsp;&nbsp;&nbsp;物品照片
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label> 
					<input id="upload"
					class="form-control" type="file"  name="upload" required />
			</div>
			<br>

			<div class="col-md-offset-3">
				<label>&nbsp;&nbsp;&nbsp;&nbsp;物品描述
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
				<textarea id="itemDiscription" class="form-control" rows="3"
					cols="3" style="width:200px;height: 100px" required></textarea>
			</div>
			<br>
			<div class="col-md-offset-3">
				<button type="reset" class="btn btn-primary" style="margin-left:7%;width:70px;">重置</button>
				<button class="btn btn-primary"
					style="margin-left:2%;width:70px;" onclick="uploadPicture();">保存</button>
			</div>
		</div>
	</div>


	<div id="item_iRentManage" class="item_iManage" style="display: none;"></div>
    

	<div id="item_iBookManage" class="item_iManage" style="display: none;"></div>
   

	<div id="item_order1" class="item_pManage1" style="display: none;">
		<table id="item_order1_form" class="table table-bordered"
			style="width: 100%;margin-top: 1%" align="center">

		</table>
	</div>

	<div id="item_order2" class="item_pManage1" style="display: none">
		<table id="item_order2_form" class="table table-bordered"
			style="width: 100%;margin-top: 1%" align="center">

		</table>
	</div>



	<div id="item_pMessage" class="item_pManage1" style="display: none">
		<div class="form-inline">
			<div class="col-md-offset-4" style="margin-top: 5%">
				<label>&nbsp;&nbsp;&nbsp;&nbsp;姓名
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label> <input id="cuName"
					name="cuName" value=<%=cuName%> class="form-control" type="text"
					style="width:180px;height: 30px" required />
			</div>
			<br>
			<div class="col-md-offset-4">
				<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;qq
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label> <input
					id="qqNumber" name="qqNumber" value=<%=qqNumber%>
					class="form-control" type="text" style="width:180px;height: 30px"
					required />
			</div>
			<br>

			<div class="col-md-offset-4">
				<label>手机号码&nbsp;&nbsp;&nbsp;</label> <input id="phoneNumber"
					name="phoneNumber" value=<%=phoneNumber%> class="form-control"
					type="text" style="width:180px;height: 30px" required />
			</div>
			<br>

			<div class="col-md-offset-4">
				<label>&nbsp;&nbsp;&nbsp;&nbsp;地址
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label> <input id="address"
					name="address" value=<%=address%> class="form-control"
					type="text" style="width:180px;height: 30px" required />
			</div>
			<br>
			<div class="col-md-offset-4">
				<label>电子邮箱&nbsp;&nbsp;&nbsp;</label> <input id="email" name="email"
					value=<%=email%> class="form-control" type="text"
					style="width:180px;height: 30px" required />
			</div>
			<br>
			<div class="col-md-offset-4">
				<button class="btn btn-primary" style="margin-left:7%;width:70px;"
					onclick="pMessage()">保存</button>
				<button type="reset" class="btn btn-primary"
					style="margin-left:2%;width:70px;">重置</button>
			</div>
		</div>
	</div>

	<div id="item_editPwd" class="item_pManage2" style="display: none">
		<div class="form-inline">

			<div class="col-md-offset-4" style="margin-top: 5%">
				<label>请输入你的原密码&nbsp;&nbsp;&nbsp;</label> <input id="old_pwd"
					name="old_pwd" class="form-control" type="password"
					style="width:150px;height: 30px" required />
			</div>
			<br>

			<div class="col-md-offset-4">
				<label>请输入你的新密码&nbsp;&nbsp;&nbsp;</label> <input id="new_pwd1"
					name="new_pwd1" class="form-control" type="password"
					style="width:150px;height: 30px" required />
			</div>
			<br>
			<div class="col-md-offset-4">
				<label>请再次输入新密码&nbsp;&nbsp;&nbsp;</label> <input id="new_pwd2"
					name="new_pwd2" class="form-control" type="password"
					style="width:150px;height: 30px" required />
			</div>
			<br>
			<div class="col-md-offset-4">
				<button type="summit" class="btn btn-primary"
					style="margin-left:7%;width:70px;" onclick="editPwd();">提交</button>
				<button type="reset" class="btn btn-primary"
					style="margin-left:2%;width:70px;">重置</button>
			</div>

		</div>

	</div>

	<button id="item_detail" type="button" class="btn  btn-primary"
		data-toggle="modal" data-target="#myModal"
		style="margin-left: 37%;display: none">详情</button>
	<div class="modal fade" id="myModal" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog" style="margin-top: 100px">
			<div class="modal-content" id="item_details1">

				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="myModalLabel">详情</h4>
				</div>

				<div class="modal-body">

					<form class="form-inline form-signin" role="form">

						<div>
							<label style="margin-left: 140px;margin-right: 10px">物品名称</label>
							<input name="itemId1" id="itemId1" class="form-control"
								type="text" style="width:150px;height:30px;display: none">
							<input name="item_name1" id="item_name1" class="form-control"
								type="text" style="width:180px;height:30px" disabled>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</div>

						<div>
							<label style="margin-left: 140px;margin-right: 10px">物品单价</label>
							<input name="item_price1" id="item_price1" class="form-control"
								type="text" style="width:180px;height:30px" disabled>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</div>

						<div>
							<label style="margin-left: 155px;margin-right: 25px">余量</label> <input
								name="item_number1" id="item_number1" class="form-control"
								type="text" style="width:180px;height:30px" disabled>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</div>

						<div>
							<label style="margin-left: 140px;margin-right: 10px">物品描述</label>
							<textarea rows="3" cols="17" name="item_description1"
								id="item_description1" class="form-control" disabled></textarea>
						</div>

						<div>
							<label style="margin-left: 140px;margin-right: 10px">物品主人</label>
							<input name="item_owner1" id="item_owner1" class="form-control"
								type="text" style="width:180px;height:30px" disabled>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</div>

						<div>
							<label style="margin-left: 160px;margin-right: 35px">qq</label> <input
								name="owner_qq1" id="owner_qq1" class="form-control" type="text"
								style="width:180px;height:30px" disabled>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</div>

						<div>
							<label style="margin-left: 155px;margin-right: 25px">手机</label> <input
								name="owner_phone1" id="owner_phone1" class="form-control"
								type="text" style="width:180px;height:30px" disabled>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</div>

						<div>
							<label style="margin-left: 155px;margin-right: 25px">地址</label> <input
								name="owner_address1" id="owner_address1" class="form-control"
								type="text" style="width:180px;height:30px" disabled>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</div>

						<div>
							<label style="margin-left: 140px;margin-right: 10px">购买数量</label>
							<input name="buy_num" id="buy_num" class="form-control"
								type="text" style="width:180px;height:30px" required>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</div>

					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-primary"
						onclick="book_Item();">预定</button>
					<button type="button" class="btn btn-primary" data-dismiss="modal">返回</button>
				</div>

			</div>
		</div>
	</div>


	<button id="order_evaluate" type="button" class="btn  btn-primary"
		data-toggle="modal" data-target="#myModal1"
		style="margin-left: 37%;display: none">评价</button>
	<div class="modal fade" id="myModal1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog" style="margin-top: 100px">
			<div class="modal-content" id="order_evaluate1">

				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="myModalLabel">订单详情</h4>
				</div>
				<div class="modal-body">
					<form class="form-inline form-signin" role="form">
						<div>
							<label style="margin-left: 140px;margin-right: 10px">物品名称</label>
							<input name="orderId1" id="orderId1" class="form-control"
								type="text" style="width:150px;height:30px;display: none">
							<input name="item_name2" id="item_name2" class="form-control"
								type="text" style="width:180px;height:30px" disabled>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</div>

						<div>
							<label style="margin-left: 140px;margin-right: 10px">订单价格</label>
							<input name="order_price1" id="order_price1" class="form-control"
								type="text" style="width:180px;height:30px" disabled>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</div>

						<div>
							<label style="margin-left: 140px;margin-right: 10px">订购数量</label>
							<input name="buy_num1" id="buy_num1" class="form-control"
								type="text" style="width:180px;height:30px" disabled>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</div>

						<div>
							<label style="margin-left: 140px;margin-right: 10px">物品描述</label>
							<textarea rows="3" cols="17" name="item_description2"
								id="item_description2" class="form-control" disabled></textarea>
						</div>

						<div>
							<label style="margin-left: 140px;margin-right: 10px">物品主人</label>
							<input name="item_owner2" id="item_owner2" class="form-control"
								type="text" style="width:180px;height:30px" disabled>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</div>

						<div>
							<label style="margin-left: 140px;margin-right: 10px">订单日期</label>
							<input name="order_date1" id="order_date1" class="form-control"
								type="text" style="width:180px;height:30px" disabled>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</div>

						<div>
							<label style="margin-left: 140px;margin-right: 10px">评价物品</label>
							<textarea rows="3" cols="17" name="order_evaluate2"
								id="order_evaluate2" class="form-control"></textarea>
						</div>

					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-primary" data-dismiss="modal">取消</button>
					<button type="button" class="btn btn-primary"
						onclick="evaluate_item();">确定</button>
				</div>

			</div>
		</div>
	</div>



	<button id="edit_item" type="button" class="btn  btn-primary"
		data-toggle="modal" data-target="#myModal2"
		style="margin-left: 37%;display: none">修改信息</button>
	<div class="modal fade" id="myModal2" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog" style="margin-top: 100px">
			<div class="modal-content" id="edit_item1">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="myModalLabel">物品信息</h4>
				</div>
				<div class="modal-body">
					<form class="form-inline form-signin" role="form">
						<div class="col-md-offset-3" style="margin-top: 5%">
							<label>&nbsp;&nbsp;&nbsp;&nbsp;物品名称
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label> <input id="itemName3"
								class="form-control" type="text"
								style="width:150px;height: 30px" required />
						</div>

						<br>
						<div class="col-md-offset-3">
							<label>&nbsp;&nbsp;&nbsp;&nbsp;物品种类
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label> <input id="itemTypeName3"
								class="form-control" type="text"
								style="width:150px;height: 30px" required />
						</div>

						<br>
						<div class="col-md-offset-3">
							<label>&nbsp;&nbsp;&nbsp;&nbsp;物品价格
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label> <input id="itemPrice3"
								class="form-control" type="text"
								style="width:150px;height: 30px" required />
						</div>
						<br>

						<div class="col-md-offset-3">
							<label>&nbsp;&nbsp;&nbsp;&nbsp;物品数量
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label> <input id="itemNumber3"
								class="form-control" type="text"
								style="width:150px;height: 30px" required />
						</div>
						<br>

						<div class="col-md-offset-3">
							<label>&nbsp;&nbsp;&nbsp;&nbsp;物品照片
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label> <input id="pictureFile3"
								class="form-control" type="file" multiple=true required />
						</div>
						<br>

						<div class="col-md-offset-3">
							<label>&nbsp;&nbsp;&nbsp;&nbsp;物品描述
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
							<textarea id="itemDiscription3" class="form-control" rows="3"
								cols="3" style="width:200px;height: 100px" required></textarea>
						</div>
						<br>

					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-primary" data-dismiss="modal">取消</button>
					<button type="button" class="btn btn-primary"
						onclick="editItem1();">确定</button>
				</div>

			</div>
		</div>
	</div>

	<div class="item_footer">
		<label class="col-md-offset-5">版权归xxx所有</label>
	</div>
</body>


</html>
